<?php
Route::group(['namespace'=>"Admin",'prefix'=>'admin','middleware' => 'admin.login'],function(){
	// 商品删除路由
	Route::get('goods/del/{id}', 'GoodsController@delete');
	// 商品状态修改
	Route::get('goods/status/{id}', 'GoodsController@status');
	// 后台商品资源路由
	Route::resource('goods','GoodsController');
	// 后台栏目删除路由
	Route::get('cat/del/{id}', 'CatController@delete');
	// 后台栏目资源路由
	Route::resource('cat','CatController');

});

// 商品状态修改
Route::get('business/status/{id}', 'Home\BusinessController@status');
// 商家商品删除路由
Route::get('business/del/{id}', 'Home\BusinessController@delete');
// 商家商品添加、修改资源路由
Route::resource('business','Home\BusinessController');